@import '@/style/variable.scss';
@import '@/style/ellipsis.scss';

.xxm-header{
//    position: fixed;
//    left: 0;
//    top: 0;
//    width: 100%;
   position: relative;
    &__bg{

        background-color: $primary;
        height: 400px;
        position: absolute;
        top: 0;
        width: 100%;
        z-index: 0;
    }
    &__top{
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        z-index: 99;
        background-color: $primary;

    }
    &__content{
        display: flex;
        padding-top: 10px;
        align-items: center;
        position: relative;
        z-index: 1;
        padding-bottom: 20px;
    }
    &__left,
    &__right{
        // flex: 1;
        display: inline-block;
        width: 50%;
    }
    &__right{
        // flex: 1;
        display: flex;
        justify-content: flex-end;
        padding-right: 30px;
        text-align: center;
        color: #fff;
        //   justify-content: space-between;
    }
}

.xxm-address{

    position: relative;
    // text-align: center;
    user-select: none;
    // height:
    // line-height: $nav-bar-height;
    // background-color: $nav-bar-background-color;

    &__content {
      position: relative;
      height: 100%;
    }

    &__text {
      display: inline-block;
      vertical-align: middle;
      margin: 0 -$padding-md;
      padding: 0 $padding-md;
      color: $nav-bar-text-color;

      &--hover {
        background-color: #fff;
      }
    }

    &__arrow {
      vertical-align: middle;
      font-size: $nav-bar-arrow-size;
      color: $nav-bar-text-color;


    }

    &--fixed {
      position: fixed;
      top: 0;
      left: 0;
      width: 100%;
    }

    &__title {
      max-width: 100%;
      height: 100%;
    //   margin: 0 auto;
      color: $nav-bar-title-text-color;
      // font-weight: 700;
      font-size: $default-font-size;
    //   display: flex;
    //   // align-self: flex-end;
    //   align-items: center;
    //   justify-content: flex-start;
      padding: 0 $padding-md + 30px 0;
    }

    &__left,
    &__right {
      position: absolute;
      top: 0;
      bottom: 0;
      display: flex;
      align-items: center;
      font-size: $font-size-md;
    }

    &__left {
      left: $padding-sm;
    }

    &__right {
      right: $padding-md;
    }
}

.xxm-searchbox{
    width:252px;
    height:60px;
    line-height: 60px;
    background:rgba(255, 255, 255, .2);
    box-shadow:0px 0px 40px rgba(0,0,0,0.05);
    // opacity:0.2;
    border-radius:40px;
    font-size: 24px;
}

// swiper {
//     height: 100%;
// }
.xxm-banner{
    width: 700px;
    height: 270px;
    margin: 20px auto 0;

    &__item{
        overflow: hidden;
        height: 100%;
        image{
            border-radius: 16px;
            width: 100%;
            height: 100%;
        }
    }
}

.xxm-ad-box{
    padding: 26px 32px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: $color;
    font-size: $sm-font-size;
    &__item{
      display: flex;
      justify-content: space-between;
      align-items: center;
    }
    &__icon {
      width: 32px;
      height: 32px;
      margin-right: 12px;
    }
}
